/**
 * 
 */
package com.hanhai.zrb.model.project.enums;

/**
 * @author leiruiqi@hanhai.com
 *
 */
public enum IsValidateEnums {

	NOACCPE(701,"未认证"),
	PHONEACCPE(702,"电话认证"),
	LOCALACCPE(703,"现场认证"),
	ACCPEPROJECT(704,"授权项目"),
	;
	
	private Integer code;
	
	private String value;
	
	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private IsValidateEnums(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String  getValueByCode(int code){
		for(IsValidateEnums status:IsValidateEnums.values()){
			if(status.getCode() == code){
				return status.getValue();
			}
		}
		return null;
	}
	
	public static void main(String[] args) {

		for(IsValidateEnums status :IsValidateEnums.values()){
			System.out.println("code="+status.getCode()+ " values = "+status.getValue());
		}
	}
}
